#include <vector>
#include "basic_cpp.hpp"

using namespace std;

float * findProduct(float * matrix, float * v, int rows, int cols) {
	float * answer = new float[rows];

	for(int i = 0; i < rows ; i++) {
		for(int j = 0; j < cols  ; j++) {
			answer[i] = answer[i] + matrix[i*rows+j] * v[j];
		}
	}
	
	return answer;
}